<template>
  <RouterView />
</template>

<script>
import { RouterView } from 'vue-router'

export default {
  name: 'App',
  components: {
    RouterView
  }
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#app {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Element Plus 布局组件重置 */
.el-container {
  height: 100% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
}

.el-aside {
  height: 100vh !important;
  overflow-y: auto;
  overflow-x: hidden;
}

.el-header {
  padding: 0 !important;
  height: 60px !important;
  line-height: 60px;
  border-bottom: 1px solid #e4e7ed;
  background-color: #fff;
  width: 100% !important;
}

.el-main {
  height: calc(100vh - 60px - 40px) !important;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  background-color: #f5f5f5;
  width: 100% !important;
  max-width: none !important;
}

/* 全局样式重置 */
.el-menu-item,
.el-sub-menu__title {
  height: 50px;
  line-height: 50px;
}

.el-menu-item i,
.el-sub-menu__title i {
  width: 24px;
  text-align: center;
  margin-right: 8px;
}

/* 移除任何最大宽度限制 */
.el-row,
.el-col {
  max-width: none !important;
  width: 100% !important;
}

/* 确保内容区域完全撑开 */
.el-card,
.el-table,
.el-form {
  width: 100% !important;
  max-width: none !important;
}

/* 强制所有容器撑满 */
* {
  box-sizing: border-box;
}

div, section, main, article {
  max-width: none !important;
}

/* Element Plus 下拉组件样式修复 */
.el-dropdown-menu,
.el-popper,
.el-select-dropdown,
.el-picker-panel {
  z-index: 3000 !important;
}

/* 响应式断点 */
@media (max-width: 768px) {
  .el-aside {
    width: 64px !important;
  }
  
  .sidebar-menu {
    width: 64px !important;
  }
}
</style>
